home *** CD-ROM | disk | FTP | other *** search
/ AOL File Library: 2,801 to 2,900 / aol-file-protocol-4400-2801-to-2900.zip / AOLDLs / C++ Files Library / Acere (Card Game) / AcereÄ.sit / Acereƒ / CTextDoc.h < prev    next >
Text File  |  1994-08-25  |  1KB  |  49 lines

  1. // ===========================================================================
  2. //    CTextDoc.h                        ⌐1994 Metrowerks Inc. All rights reserved.
  3. // ===========================================================================
  4.  
  5. #pragma once
  6.  
  7. #include <LSingleDoc.h>
  8. #include "CardDeck.h"
  9.  
  10. class    LTextEdit;
  11.  
  12. class     WellDeck;
  13. class    WellFreeCell;
  14. class    WellStack;
  15.  
  16. class    CTextDoc : public LSingleDoc {
  17. public:
  18.     //    instance variables
  19.     
  20.     WellDeck            *theDeckWells[4];
  21.     WellFreeCell        *theFreeCells[4];
  22.     WellStack            *theStacks[8];
  23.     
  24.     short                currentDeckWell, currentFreeCell, currentStack;
  25.  
  26.     //    methods
  27.                         CTextDoc(LCommander *inSuper, FSSpec *inFileSpec);
  28.     virtual                ~CTextDoc();            //    destructor
  29.  
  30.                         
  31.     RgnHandle            cardRgn;
  32.     CardStruct            firstCard, secondCard;
  33.                     
  34.     virtual Boolean        IsModified();
  35.     
  36.     virtual void        DoAESave(FSSpec &inFileSpec, OSType inFileType);
  37.     virtual void        DoSave();
  38.     virtual void        DoRevert();
  39.     virtual void        DoPrint();
  40.                     
  41.     virtual void        CheckVictory(void);
  42.     virtual void        StartNewGame(void);
  43. protected:
  44.     LTextEdit            *mTextView;
  45.     
  46.     void                NameNewDoc();
  47.     void                OpenFile(FSSpec &inFileSpec);
  48.  
  49. };